#ifndef KEYWIDGET_H
#define KEYWIDGET_H

#include <QWidget>
#include <QTimer>
#include "../clickedLabel.h"

class keyWidget : public QWidget
{
    Q_OBJECT
public:
    explicit keyWidget(QWidget *parent = 0);
    ~keyWidget();

    void toShow();
    void toHide();
private slots:
    void slotFN();
    void sendContent(const QString&);
    void toClose();
    void keySelect();
signals:
    void sigHideKey();

private:
    QWidget *widgetBG;
    QWidget *widget;
    QLabel *lab1;
    QLabel *lab2;
    QLabel *lab3;
    QLabel *lab4;
    QLabel *lab5;
    QLabel *lab6;
    QLabel *lab7;
    QLabel *lab8;
    QLabel *lab9;
    ClickedLabel *btn0;
    ClickedLabel *btn1;
    ClickedLabel *btn2;
    ClickedLabel *btn3;
    ClickedLabel *btn4;
    ClickedLabel *btn5;
    ClickedLabel *btn6;
    ClickedLabel *btn7;
    ClickedLabel *btn8;
    ClickedLabel *btn9;
    ClickedLabel *btnPoint;
    ClickedLabel *btnFh;
    ClickedLabel *btnFN;
    ClickedLabel *btnBS;
    ClickedLabel *btnHide;

    QTimer *timer;
    bool FNflag;
    int keyFlag;
    int selectKeyNo;
    int selectKeyNum;
    QString stySelect;
    QString styNotSelect;
    void init();
    void setKey(QString);

};

#endif // KEYWIDGET_H
